namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("CONTRACT_QUALITY")]
    public partial class CONTRACT_QUALITY
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public CONTRACT_QUALITY()
        {
            CONTRACT_QUALITY_DETAIL = new HashSet<CONTRACT_QUALITY_DETAIL>();
        }

        [Key]
        [StringLength(40)]
        public string QUALITY_ID { get; set; }

        [StringLength(40)]
        public string CONTRACT_ID { get; set; }

        public int? QUALITY_TYPE { get; set; }

        [StringLength(40)]
        public string THIRDNAME { get; set; }

        [StringLength(500)]
        public string MARK { get; set; }

        public virtual CONTRACT_INFO CONTRACT_INFO { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<CONTRACT_QUALITY_DETAIL> CONTRACT_QUALITY_DETAIL { get; set; }
    }
}
